<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="postorderList" checkbox="true" pagination="true" fitColumns="true" sortName="id" actionUrl="postorderController.do?datagrid&type=${type}" idField="id" fit="true" queryMode="group">
   <t:dgCol title="ID"  field="id"  hidden="true"  queryMode="group"  width="120"></t:dgCol>    
   <t:dgCol title="挂单编码"  field="pocode" query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="商品名称"  field="commodityname"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="会员名称"  field="potradername"  query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="买卖类型"  field="direction" query="true" queryMode="single"  dictionary="DIRECTION"  width="120"></t:dgCol>
   <t:dgCol title="价格类型"  field="pricetype"  queryMode="single"  dictionary="JIAGLX"  width="120"></t:dgCol>
   <t:dgCol title="价格(元)"  field="poprice" query="true" queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="数量(吨)"  field="poquantity" query="true" queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="剩余数量（吨）"  field="remainingqty" hidden="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="挂单时间"  field="potime"  formatter="yyyy-MM-dd" queryMode="group"  width="120"></t:dgCol>
   <c:if test="${type=='verifygp'||type=='verifypm'||type=='infopm'||type=='infotg'||type=='search'||type=='infogp'}">
   <t:dgCol title="交易状态"  field="postatus"  queryMode="single"   dictionary="POSTORDERSTATUS"  width="120"></t:dgCol>
   <c:if test="${pmys == '1'}">
   <t:dgCol title="运输方式"  field="transporttype"  queryMode="single"  dictionary="TRANSPORTTYPE"   width="120"></t:dgCol>
   </c:if>
  </c:if>
   <t:dgCol title="是否有效"  field="isvalid"  queryMode="single"  dictionary="ISN"  width="120"></t:dgCol>
   <t:dgToolBar title="查看" icon="icon-search" url="postorderController.do?goUpdate" funname="detail" width="1000" height="500"></t:dgToolBar>

   <c:if test="${type=='verifygp'||type=='verifyzb'||type=='verifypm'||type=='verifytg'}">
   <t:dgToolBar title="审核" icon="icon-edit" url="postorderController.do?goVerify&type=${type}" funname="verify" width="1000" height="500"></t:dgToolBar>
   
   </c:if>
   <t:dgToolBar title="设置无效" icon="icon-edit" url="postorderController.do?goUpdate&type=unvalid" funname="other" width="1000" height="500"></t:dgToolBar>
    
   <%-- <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar> --%>
   </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){ 
 });
 
   
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'postorderController.do?upload', "postorderList");
}

//导出
function ExportXls() {
	JeecgExcelExport("postorderController.do?exportXls","postorderList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("postorderController.do?exportXlsByT","postorderList");
}

 </script>
